package com.ajx.blog.service.impl;

import com.ajx.blog.entity.Article;
import com.ajx.blog.entity.ArticleCollInfo;
import com.ajx.blog.mapper.ArticleCollInfoMapper;
import com.ajx.blog.service.api.ArticleCollInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ArticleCollInfoServiceImpl extends ServiceImpl<ArticleCollInfoMapper, ArticleCollInfo> implements ArticleCollInfoService {
@Autowired
private ArticleCollInfoMapper articleCollInfoMapper;
    @Override
    public PageInfo<Article> selectArticleCollInfo(Integer uid, Integer pageNum) {
        PageHelper.startPage(pageNum,5);
        return  new PageInfo<Article>(articleCollInfoMapper.selectListcons(uid));
    }
}
